/**
 * 
 */
package ar.com.jsejtman.common.security.credential.handler;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;

/**
 * Handler de logout.
 * 
 * @author jsejtman
 * 
 */
public final class MyLogoutSuccessHandler extends AbstractAuthenticationTargetUrlRequestHandler
        implements LogoutSuccessHandler {

	/**
	 * Handler de logout.
	 * 
	 * @param request Request.
	 * @param response Response.
	 * @param authentication Authentication.
	 * @throws ServletException Servlet Exception.
	 * @throws IOException IO Exception.
	 */
	@Override
	public void onLogoutSuccess(final HttpServletRequest request,
	        final HttpServletResponse response, final Authentication authentication) throws IOException,
	        ServletException {

		// maybe do some other things ...
		super.handle(request, response, authentication);
	}

}
